package Assignment;

public class Test3 {
    public static void main(String[] args) {

        //单价
        double money1 = 24 + 8 + 3;
        int yuxiangShreddedPork = 24;
        int peanut = 8;
        int rice = 3;

        //不使用优惠,鱼香肉丝减16
        int notDiscounts = (yuxiangShreddedPork + peanut + rice) - 16;

        //使用优惠
        double discounts = (yuxiangShreddedPork + peanut + rice) * 0.8;

        System.out.println(notDiscounts);
        System.out.println(discounts);

        System.out.println(notDiscounts < discounts ? "不使用优惠" : "使用优惠");

    }
}
